﻿@model KPIS.GERP.Models.ICM.PurchaseOrderInstallment

@Html.Hidden("HeaderPoId", ViewBag.HeaderPoId as int?)

@{
    ViewBag.Title = "แก้ไขการแบ่งงวด";
    ViewBag.Descr = "";
    Layout = "~/Views/Shared/_EmptyLayout.cshtml";
}

   

@using (Html.BeginForm("Edit", "Installment", new { HeaderPoId = ViewBag.HeaderPoId}, FormMethod.Post, new { id = "form", @class = "form-horizontal" }))
{
    @Html.AntiForgeryToken()

    <div class="block-button-menu-above">
        <a class="btn btn-gray button-standard-width btn-small" href="@Url.Action("Index", new {ViewBag.HeaderPoId})" role="button">
            กลับไปหน้าแสดงข้อมูลทั้งหมด
        </a>
        @Html.ButtonSubmit()
    </div>
    
    if (!Html.ViewData.ModelState.IsValid) {
        <div id="errormsg" class="alert alert-block alert-error">@Html.ValidationSummary()</div>
    }
    @Html.Partial("_EditorForm")
}
@section scripts
{
    <link href="~/Content/Ace/assets/css/bootstrap-spinedit.css" rel="stylesheet" />
    <link href="~/Content/InstallmentCss.css" rel="stylesheet" />
    <script type="text/javascript" src="~/Content/Ace/assets/js/bootstrap-spinedit.js"></script> 
    <script type="text/javascript" src="~/Content/InstallmentJs.js"></script>
}